﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BCallRecords
    {
        private readonly DCallRecords _dCallrecords = new DCallRecords();          

        public DataSet GetList(string strWhere)
        {
            return _dCallrecords.GetList(strWhere);
        }
        
        public bool Add(Model.CallRecordsInfo model)
        {
            return _dCallrecords.Add(model);
        }

        public  int  GetCount(string strWhere)
        {
            return _dCallrecords.GetCount(strWhere);
        }

        public DataSet GetListByPage(int page, int pagesize, string strWhere)
        {
            return _dCallrecords.GetListByPage(page, pagesize, strWhere);
        }

        public DataSet GetReportByDay(string strWhere)
        {
            return _dCallrecords.GetReportByDay(strWhere);
        }
    }
}
